package com.ai3d.rfid.base.activity

import androidx.databinding.ViewDataBinding
import androidx.fragment.app.Fragment
import com.ai3d.rfid.base.vm.BaseViewModel
import com.bj.ski.base.R

/**
 *Base activity injected with ViewModel
 */
abstract class BaseContainerVmActivity<VM : BaseViewModel, VDB : ViewDataBinding> :
    BaseVmVdbActivity<VM, VDB>() {

    fun changeFragment(fragment: Fragment) {
        supportFragmentManager.beginTransaction().replace(R.id.fl_container, fragment).commit()
    }
    override fun finish() {
        super.finish()
        overridePendingTransition(0, 0);
    }
}